package com.mikhailenko.transportMVC.repository.es;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.mikhailenko.transportMVC.model.es.LayerEntity;

public interface LayerRepository extends JpaRepository<LayerEntity, Integer>{
	
	@Query("SELECT layer FROM layers layer WHERE layer.es.id = :id ")
    List<LayerEntity> findByEsId(@Param("id") int id);
}
